﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace MGI.AccesoDatos.AccesoSP 
{
    public class SPEventLog
    {
	    public static void WriteLog (string evento)
	    {
		    string sSource = "MGI Servidor";
            string sLog = "Application";
		    if (!EventLog.SourceExists(sSource))
			    EventLog.CreateEventSource(sSource,sLog);
		    EventLog.WriteEntry(sSource,evento); // <--- esto es info, no warning
		    //EventLog.WriteEntry(sSource, evento, EventLogEntryType.Warning, 234);
	    }

    }
}
